import { theme } from 'ant-design-vue'
import type { ComputedRef } from 'vue'
import type { AliasToken } from 'ant-design-vue/es/theme/interface'

export function useTheme(): ComputedRef<AliasToken> {
  const { useToken } = theme
  const { token } = useToken()
  return token
}
